package funcionarios;

import junit.framework.Assert;

import org.junit.Test;


public class CpfTest {
	private Cpf cpf;
	@Test public void testaCPF(){
		try{
			cpf = new Cpf("123.456.789-03");
		}catch(Exception e){
			System.out.println(e.getMessage());
		}
		try{
			Cpf cpf2 = new Cpf("123.456789-03");
			Assert.fail();
		}catch(Exception e){
			Assert.assertEquals("CPF invalido", e.getMessage());
		}
	}
	
}
